

#ifndef __API_SPO2_UART_H
#define __API_SPO2_UART_H

#ifdef __cplusplus
 extern "C" {
#endif

#include "gr_includes.h"
#include "fifo.h"
#include "app_uart.h"
#include "board_SK.h"


//#define UART_WAITE_INTERVAL         4000  //ble 3ms

void spo2_usart_init(void);

void receive_spo2_data(unsigned char data);
void handle_spo2_data(void);

unsigned char  send_spo2_data_to_ble(void);

void usart_timer_handler(void);

void check_SPO2_status_handle(void);

void init_spo2_gpio(void);

void app_uart_demo(void);

#ifdef __cplusplus
}
#endif

#endif
